Skip to content

Add Playwright MCP, Superpowers and claude-remember directories to Agents.gitignore - #4883

Open
rmyndharis wants to merge 1 commit into
github:mainfrom
rmyndharis:agents-session-state
Open

rmyndharis wants to merge 1 commit into
github:mainfrom
rmyndharis:agents-session-state

Conversation

@rmyndharis

@rmyndharis rmyndharis commented Jul 19, 2026 •

Copy link
Copy Markdown

Link to the application or project's homepage

Reasons for making this change

These three agent tools write generated, machine-local data into the project directory by default, so the directories show up as untracked files in every repository where the tools run. None of it is shared project configuration.

  • Playwright MCP saves automatically named output files (screenshots, PDFs, videos, browser storage state) to .playwright-mcp/ in the working directory when --output-dir is not set. Saved storage state can contain session cookies.
  • The Superpowers brainstorming companion keeps its mockups and session state in .superpowers/brainstorm/ under the project root, and its instructions ask users to add .superpowers/ to .gitignore.
  • The claude-remember plugin stores its session memory in .remember/ inside the project by default.

None of the existing sections covers these tools, so the three rules go in one new section next to the other agent entries.

Links to documentation supporting these rule changes

Merge and Approval Steps

@rmyndharis
rmyndharis requested a review from a team as a code owner July 19, 2026 12:28
@corleonis

Copy link
Copy Markdown

LGTM 🚢

@dooleydevin dooleydevin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you include documentation in the PR body that justifies these changes? There are some that seem legitimate to me (like .continue/sessions/), but I cannot find references to others (like .remember).

@dooleydevin
dooleydevin marked this pull request as draft November 6, 2026 23:32
@dooleydevin
dooleydevin marked this pull request as ready for review November 6, 2026 23:32
Copilot AI auto review requested due to automatic review settings November 6, 2026 23:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An active finding remains because Global/Agents.gitignore ignores only .log files under .claude, leaving other artifacts in .claude/logs/ uncovered.

1 open issue
What changed in this PR

This pull request expands Global/Agents.gitignore to exclude local AI coding-agent sessions, histories, logs, caches, and state while leaving potentially shareable configuration files available for explicit tracking.

Changes:

  • Adds OpenAI Codex session, history, and log exclusions.
  • Adds Claude Code, Cursor, and Continue session/state exclusions.
  • Adds state-directory exclusions for several other agent tools.

This pull request is ready to be approved.

File Description
Global/​Agents.gitignore Adds ignore rules for local AI-agent session and state artifacts.

Review effort: Lite (auto)

Comment thread Global/Agents.gitignore Outdated
Comment on lines +34 to +37
.claude/todos/
.claude/projects/
.claude/statsig/
.claude/shell-snapshots/
Playwright MCP, the Superpowers brainstorming companion and the
claude-remember plugin write generated, machine-local data into the
project directory by default (.playwright-mcp/, .superpowers/ and
.remember/). None of it is shared project configuration.
@rmyndharis
rmyndharis force-pushed the agents-session-state branch from ac27060 to 94dbe04 Compare November 7, 2026 14:13
@rmyndharis rmyndharis changed the title Add AI agent session/state files to Agents.gitignore Add Playwright MCP, Superpowers and claude-remember directories to Agents.gitignore Nov 7, 2026
@rmyndharis

Copy link
Copy Markdown
Author

Thanks for the review. I checked each entry against the tools' own documentation and narrowed the PR to the three directories these tools create inside a project by default:

  • .playwright-mcp/: Playwright MCP's default output directory, created in the working directory when --output-dir is not set (source).
  • .superpowers/: written by the Superpowers brainstorming companion under the project root; its instructions tell users to add .superpowers/ to .gitignore (docs).
  • .remember/: the claude-remember plugin stores its memory in .remember/ inside the project by default (README).

I dropped the Claude Code, Codex, Copilot CLI, Cursor and Continue paths. Those tools write them under the user's home directory rather than the project, and several are legacy paths that current versions no longer write (Claude Code docs); .claude/logs/ is one of them, so it is not added either. I also dropped .agent/, since Antigravity still reads legacy workspace rules from .agent/rules/, and .specstory/, since SpecStory documents keeping its history in Git. The branch is rebased on main and the description now follows the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants